<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'bumen_show.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
    <style type="text/css">
    	label {
				color:#666;
			}
    </style>
    <script src="js/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script src="js/nicEdit.js" type="text/javascript"></script>
	<script type="text/javascript">
	bkLib.onDomLoaded(function() {
		new nicEditor().panelInstance('area1');
	});
	
	function mm(){
	   var start=document.getElementById("start").value;
	   var color=document.getElementById("color").value;
	   var area1=document.getElementById("area1").value;
	   
	   if(start==null||color==null||area1==null||start==""||color==""||area1==""){
           alert("字段添加不能为空！ ");
           return false;
         }
	
	}
	</script>
  </head>
	  <body>
	     
	     <!-- <h2>添加部门日程</h2> -->
	     <p style="margin-top: 15px;">>>当前位置:添加部门日程</p>
	     <hr>
	     <div style="margin: 15px 20px;">
		       <form action="<%=request.getContextPath() %>/yz/scheduleadd" method="post" onsubmit="return mm()">
		           <label>部&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;门:</label> <!-- 设置为默认，且只读 -->
			       <input type="text" value="${depart.departname}" size="35"  disabled="disabled" />
			       <input type="hidden" name="did" value="${depart.departid}" />
			       
			       &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			       <label>&nbsp;发&nbsp;布      人:</label>
			       <input type="text" value="${userinfo.username}" size="35" disabled="disabled"/>
			       <%-- <input type="hidden" name="uinfo.username" value="${userinfo.username}"/> --%>
			       <!-- 发布人是登录时默认的用户名，不可修改，且是只读 -->
			       <br><br>
			       <label>开始时间:</label>
			       <input type="text" id="start"  name="cal.start" size="35" onclick="WdatePicker(WdatePicker({el:this,dateFmt:'yyyy-MM-dd HH:mm:00',onpicked:null}))" />
			       &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			      
			       <label>结束时间:</label>
			       <input type="text" id="end" name="cal.end" size="35" onclick="WdatePicker(WdatePicker({el:this,dateFmt:'yyyy-MM-dd HH:mm:00',onpicked:null}))" /><br><br>
			      
			       <label>会议地点:</label>
			       <input type="text" id="color"  name="cal.color" size="92" /><br><br>
			      
			       <label>内容：</label>
			       <textarea cols="100" id="area1" rows="20" name="cal.title">
			       </textarea><br><br>
			       <div style="position: absolute;right: 320px;">
			          <input type="submit" value="添加部门日程"  /> 
			       </div>
		       </form>
	       </div>
	  </body>
</html>
